home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / ab20 / unarced / graphics / pbmplus / ppm / ppm.man < prev    next >
Text File  |  1995-03-17  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4.      ppm(5)              AMIGA (27 September 1991)              ppm(5)
  5.  
  6.  
  7.  
  8.      NAME
  9.           ppm - portable pixmap file format
  10.  
  11.      DESCRIPTION
  12.           The portable pixmap format is a lowest common denominator
  13.           color image file format.  The definition is as follows:
  14.  
  15.           - A "magic number" for identifying the file type.  A ppm
  16.             file's magic number is the two characters "P3".
  17.  
  18.           - Whitespace (blanks, TABs, CRs, LFs).
  19.  
  20.           - A width, formatted as ASCII characters in decimal.
  21.  
  22.           - Whitespace.
  23.  
  24.           - A height, again in ASCII decimal.
  25.  
  26.           - Whitespace.
  27.  
  28.           - The maximum color-component value, again in ASCII decimal.
  29.  
  30.           - Whitespace.
  31.  
  32.           - Width * height pixels, each three ASCII decimal values
  33.             between 0 and the specified maximum value, starting at the
  34.             top-left corner of the pixmap, proceeding in normal
  35.             English reading order.  The three values for each pixel
  36.             represent red, green, and blue, respectively; a value of 0
  37.             means that color is off, and the maximum value means that
  38.             color is maxxed out.
  39.  
  40.           - Characters from a "#" to the next end-of-line are ignored
  41.             (comments).
  42.  
  43.           - No line should be longer than 70 characters.
  44.  
  45.           Here is an example of a small pixmap in this format:
  46.           P3
  47.           # feep.ppm
  48.           4 4
  49.           15
  50.            0  0  0    0  0  0    0  0  0   15  0 15
  51.            0  0  0    0 15  7    0  0  0    0  0  0
  52.            0  0  0    0  0  0    0 15  7    0  0  0
  53.           15  0 15    0  0  0    0  0  0    0  0  0
  54.  
  55.           Programs that read this format should be as lenient as
  56.           possible, accepting anything that looks remotely like a
  57.           pixmap.
  58.  
  59.           There is also a variant on the format, available by setting
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/19/91)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      ppm(5)              AMIGA (27 September 1991)              ppm(5)
  71.  
  72.  
  73.  
  74.           the RAWBITS option at compile time.  This variant is
  75.           different in the following ways:
  76.  
  77.           - The "magic number" is "P6" instead of "P3".
  78.  
  79.           - The pixel values are stored as plain bytes, instead of
  80.             ASCII decimal.
  81.  
  82.           - Whitespace is not allowed in the pixels area, and only a
  83.             single character of whitespace (typically a newline) is
  84.             allowed after the maxval.
  85.  
  86.           - The files are smaller and many times faster to read and
  87.             write.
  88.  
  89.           Note that this raw format can only be used for maxvals less
  90.           than or equal to 255.  If you use the ppm library and try to
  91.           write a file with a larger maxval, it will automatically
  92.           fall back on the slower but more general plain format.
  93.  
  94.      SEE ALSO
  95.           giftoppm(1), gouldtoppm(1), ilbmtoppm(1), imgtoppm(1),
  96.           mtvtoppm(1), pcxtoppm(1), pgmtoppm(1), pi1toppm(1),
  97.           picttoppm(1), pjtoppm(1), qrttoppm(1), rawtoppm(1),
  98.           rgb3toppm(1), spctoppm(1), sputoppm(1), tgatoppm(1),
  99.           ximtoppm(1), xpmtoppm(1), yuvtoppm(1), ppmtogif(1),
  100.           ppmtoicr(1), ppmtoilbm(1), ppmtopcx(1), ppmtopgm(1),
  101.           ppmtopi1(1), ppmtopict(1), ppmtopj(1), ppmtopuzz(1),
  102.           ppmtorgb3(1), ppmtosixel(1), ppmtotga(1), ppmtouil(1),
  103.           ppmtoxpm(1), ppmtoyuv(1), ppmdither(1), ppmhist(1),
  104.           ppmmake(1), ppmpat(1), ppmquant(1), ppmquantall(1),
  105.           ppmrelief(1), pnm(5), pgm(5), pbm(5)
  106.  
  107.      AUTHOR
  108.           Copyright (C) 1989, 1991 by Jef Poskanzer.
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                         (printed 10/19/91)
  130.  
  131.  
  132.  
  133.